package edu.bw.service.impl;

import edu.bw.po.Account;
import edu.bw.service.AccountService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

@SpringJUnitConfig(locations = "classpath:applicationContext02.xml")
class AccountServiceImplTest02 {

    @Autowired
    private AccountService accountService;

    @Test
    void transferAccount() {
        //模拟李四给张三转账4000
        accountService.transferAccount(
                new Account("zhangsan",4000.00),
                new Account("lisi",-4000.00)
        );

    }
}